/*
 * @Author: Lin Hongwei
 * @Date: 2021-12-06 15:12:02
 * @LastEditTime: 2021-12-08 15:44:11
 * @LastEditors: Lin Hongwei
 * @email: 1365755396@qq.com
 * @CSDN: https://blog.csdn.net/weixin_45429409
 * @Description: 开发环境配置文件
 */

const BaseConfig = require("./webpack.config");
const {merge:WebpackMerge} = require("webpack-merge");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const path = require("path");
const DevConfig = {
    mode:"development",
    devtool:"eval-cheap-module-source-map",
    devServer:{
        // static:path.join(__dirname,"dist"),
        host:"localhost",
        port:8080,
        open:true
    },
    target:"web",
    plugins:[
        new CleanWebpackPlugin(),
    ]
}

module.exports = WebpackMerge(BaseConfig,DevConfig)

